package asm;

import app.controller.TestController;
import app.controller.UserController;
import org.ricks.common.Context;
import org.ricks.ioc.AppContext;

public class Dispatcher {
    public static void dispacher(Context<Short,byte[]> context) {
        switch (context.getCmd()) {
        case 10:
        AppContext.getBean(UserController.class).test(context);
        break;
    case 13:
       AppContext.getBean(UserController.class).demon(context);
       break;
    case 11:
       AppContext.getBean(UserController.class).testUserDb(context);
       break;
    case 12:
       AppContext.getBean(UserController.class).tesGachaDb(context);
       break;
    case 1:
       AppContext.getBean(TestController.class).test(context);
       break;
    case 4:
       AppContext.getBean(TestController.class).demon(context);
       break;
    case 2:
       AppContext.getBean(TestController.class).testUserDb(context);
       break;
    case 3:
       AppContext.getBean(TestController.class).tesGachaDb(context);
       break;
    }
  }
}